<?php
require_once __DIR__ . '/../config.php';

// 简单的安全检查
if (php_sapi_name() !== 'cli') {
    die('This script can only be run from command line');
}

// 验证管理员密码
$password = readline("Enter admin password: ");
if ($password !== ADMIN_PASSWORD) {
    die("Invalid password\n");
}

// ... 其余代码保持不变 ... 